import {requestService} from '/src/utils/request'

// 查询菜单列表
export function getMenuList(query) {
    return requestService({
        url: '/xiaozhen-system/sysMenu/list',
        method: 'get',
        params: query
    })
}


// 新增菜单
export function addSysMenu(data) {
    return requestService({
        url: '/xiaozhen-system/sysMenu/add',
        method: 'post',
        data: data
    })
}

// 修改菜单
export function updateSysMenu(data) {
    return requestService({
        url: '/xiaozhen-system/sysMenu/update',
        method: 'put',
        data: data
    })
}

// 删除菜单
export function delMenu(menuId) {
    return requestService({
        url: '/xiaozhen-system/sysMenu/' + menuId,
        method: 'delete'
    })
}

//
export function getRoleMenuTreeSelect(roleId) {
    return requestService({
        url: '/xiaozhen-system/sysMenu/roleMenuTreeSelect/' + roleId,
        method: 'get'
    })
}
